package demo3;

public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {
        Money money=new Money(10000);
        Person person1=new Person("dzj",money);
        Person person2=(Person) person1.clone();
        System.out.println(person1.money.num);
        System.out.println(person2.money.num);
        System.out.println("===================");
        person1.money.num=5;
        System.out.println(person1.money.num);
        System.out.println(person2.money.num);
    }
}
